﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Upreader.Common
{
    public static class FileUtility
    {
        public static string EncodePath(string path)
        {
            foreach (char invalidChar in Path.GetInvalidPathChars())
            {
                path = path.Replace(new string(invalidChar, 1), string.Empty);
            }

            return path;
        }
    }
}
